package Adapter;

import Prototype.MyFruit;

public class Adapter implements InewJuicer{
    private OldJuicer oldJuicer;
    public String newPort(MyFruit fruit1, MyFruit fruit2){
        oldJuicer = new OldJuicer();
        String str = "混合果汁：" + oldJuicer.onePort(fruit1);
        str += oldJuicer.onePort(fruit2);
        return str;
    }
}
